﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;

namespace SCS.Core.Models.Collection
{
    public class ArticleCategoryCollection
    {
        [Required(ErrorMessage = "Nhập tên của danh mục.")]
        [DisplayName("Categories Name")]
        [StringLength(250)]
        public string CategoriesName { get; set; }

       // [Required(ErrorMessage = "Please let's enter Alias of Category.")]
        [DisplayName("Default value : 0")]
        [StringLength(250)]
        public string CategoriesAlias { get; set; }

        [DisplayName("Access")]
        public int? CategoriesAccess { get; set; }

        [DisplayName("Params")]
        [StringLength(250)]
        public string CategoriesParams { get; set; }
        
        [DisplayName("Order")]
        [RegularExpression(@"^([0-9]*|\d*\.\d{1}?\d*)$", ErrorMessage = "Sắp xếp là kiểu số.")]
        public int? CategoriesOrdering { get; set; }

        [DisplayName("Active")]
        public bool CategoriesActive { get; set; }

        [DisplayName("Url")]
        public string CategoriesUrl { get; set; }

        [DisplayName("LanguagesID")]
        public int? LanguagesID { get; set; }

        [DisplayName("SiteGuid")]
        public int? SiteGuid { get; set; }

        [DisplayName("CategoriesParentID")]
        public int CategoriesParentID { get; set; }

        [DisplayName("CategoriesID")]
        public int CategoriesID { get; set; }

        [DisplayName("Images")]
        public string Images { get; set; }
    }
}